//
//  MainViewController.swift
//  WitBearWB
//
//  Created by liqi on 16/5/27.
//  Copyright © 2016年 liqi. All rights reserved.
//

import UIKit

class MainViewController: UITabBarController {

    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // 添加子视图控制器
        addChildViewControllers()
    }

    private func addChildViewControllers() {
        
        let home = HomeTableViewController()
        
        let nav = UINavigationController(rootViewController: home)

        title="首页"
           nav.title = "首页"
        home.title = "首页"
 
        addChildViewController(nav)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
